package com.liwenfeng.diancanspringboot.service;

import com.liwenfeng.diancanspringboot.pojo.dto.ShoppingCartDTO;
import com.liwenfeng.diancanspringboot.pojo.dto.ShoppingCartSelectAllDto;
import com.liwenfeng.diancanspringboot.pojo.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> showShoppingCart(Long turnoverId);

    void cleanShoppingCart(Long turnoverId);

    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);

    void updateById(ShoppingCart shoppingCart);

    void updateByIds(ShoppingCartSelectAllDto shoppingCartSelectAllDto);
}
